package service.impl;


import dao.OrderDetailDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import service.OrderDetailService;

@Service()
@Transactional(propagation = Propagation.REQUIRED)
public class OrderDetailServiceImpl implements OrderDetailService {

    @Autowired
    private OrderDetailDao orderDetailDao;

    @Override
    public Integer addOrderDetail(Integer skillid, Integer staffid, Integer parentid) {
        return orderDetailDao.addOrderDetail(skillid,staffid,parentid);
    }

    @Override
    public Integer delOrderDetail(Integer parentid) {
        return orderDetailDao.delOrderDetail(parentid);
    }
}
